OTP\Handler\Forms\WooCommerceRegistrationForm B

Total Complexity 89
Dependencies 9
Dependents 0
Total lines 432
Lines of code 302
Logical lines of code 165
Comment lines 0
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
processFormFields()
A
48 13 30
processFormAndSendOTP()
S
55 5 18
assertUserName()
S
58 5 16
checkIntegrity()
S
57 5 16
checkIntegrityAndValidateOTP()
S
58 5 15
handleForm()
S
54 4 20
assertEmail()
S
60 4 14
mo_add_phone_field()
S
61 4 13
handleFormOptions()
S
56 3 17
sendAjaxOTPRequest()
S
58 3 15
mo_add_verification_field()
S
62 3 14
handle_failed_verification()
S
62 3 11
getPhoneNumberSelector()
S
70 3 6
__construct()
S
58 2 15
assertPassword()
S
65 3 9
woocommerce_site_registration_errors()
S
63 3 10
custom_registration_redirect()
S
70 3 6
routeData()
S
68 3 7
miniorange_register_wc_script()
S
60 2 12
checkIfOTPWasSent()
S
69 2 7
assertOTPField()
S
68 2 7
register_woocommerce_user()
S
70 2 6
isPhoneVerificationEnabled()
S
75 2 4
handle_post_verification()
S
80 1 3
unsetOTPSessionVariables()
S
79 1 3
isPhoneNumberAlreadyInUse()
S
69 1 6
redirectToPage()
S
92 1 1
isredirectToPageEnabled()
S
92 1 1